﻿
using System;
using com.guojin.core.io;
using com.guojin.core.io.message;
namespace com.guojin.mj.net.message.login
{
    //代开房申请
    public class SHReplaceCreatRoom : Message
    {
        public static int TYPE = 7;
        public static int ID = 39;

        public SHReplaceCreatRoom()
        {
        }

        private string _roomID;
        private int _gameType;
        private int _chapterNum;
        private int _botScore;
        private int _state;

        public int GameType
        {
            get
            {
                return _gameType;
            }

            set
            {
                _gameType = value;
            }
        }

        public string RoomID
        {
            get
            {
                return _roomID;
            }

            set
            {
                _roomID = value;
            }
        }

        public int ChapterNum
        {
            get
            {
                return _chapterNum;
            }

            set
            {
                _chapterNum = value;
            }
        }

       
        public int State
        {
            get
            {
                return _state;
            }

            set
            {
                _state = value;
            }
        }

        public int BotScore
        {
            get
            {
                return _botScore;
            }

            set
            {
                _botScore = value;
            }
        }

        public void decode(Input _in)
        {
            _roomID = _in.readString();
            _gameType = _in.readInt();
            _chapterNum = _in.readInt();
            BotScore = _in.readInt();
            _state = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public string toString()
        {
            return "SHReplaceCreatRoom[ ]";
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return ID;
        }
    }
}